# src/ctrl.py

import threading

_interrupt_event = threading.Event()


def request_stop():
    _interrupt_event.set()


def reset_stop():
    _interrupt_event.clear()


def is_stopped():
    return _interrupt_event.is_set()
